package com.ss.whisper2.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;
import org.springframework.stereotype.Component;

@Component
public class RedisReceiver implements MessageListener {
	private final Logger logger = LoggerFactory.getLogger(getClass());
	@Override
	public void onMessage(Message message, byte[] bytes) {
		logger.info("redis:"+message.toString());
	}
}
